﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace shenghua.Migrations
{
    public partial class addentity27 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_CommoditySpecifications",
                table: "CommoditySpecifications");

            migrationBuilder.RenameTable(
                name: "CommoditySpecifications",
                newName: "CommodityShoppingOptions");

            migrationBuilder.AddPrimaryKey(
                name: "PK_CommodityShoppingOptions",
                table: "CommodityShoppingOptions",
                column: "Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_CommodityShoppingOptions",
                table: "CommodityShoppingOptions");

            migrationBuilder.RenameTable(
                name: "CommodityShoppingOptions",
                newName: "CommoditySpecifications");

            migrationBuilder.AddPrimaryKey(
                name: "PK_CommoditySpecifications",
                table: "CommoditySpecifications",
                column: "Id");
        }
    }
}
